Newer
Older
CubeSolver / Code Stuff / moveLists / old
setupMoves = MoveList(machine, [
        Move('extension', 0, _position='r'),
        Move('extension', 2, _position='r'),
        Move('delay', _delay=.1),
        Move('spin', 0, _position=1),
        Move('spin', 2, _position=1),
        Move('delay', _delay=.5),
        Move('extension', 0, _position='e'),
        Move('extension', 2, _position='e'),
        Move('delay', _delay=extensionDelay),
        Move('extension', 1, _position='r'),
        Move('extension', 3, _position='r'),
        Move('spin', 1, _position=1),
        Move('spin', 3, _position=1),
        Move('delay', _delay=extensionDelay),
        Move('extension', 1, _position='e'),
        Move('extension', 3, _position='e'),
    ])
    delaydelay = 0.06
    moves2 = MoveList(machine, [
        Move('spin', 0, _position=1),
        Move('delay', _delay=delaydelay),
        Move('spin', 1, _position=1),
        Move('delay', _delay=delaydelay),
        Move('spin', 2, _position=1),
        Move('delay', _delay=delaydelay),
        Move('spin', 3, _position=1),
        Move('delay', _delay=delaydelay),
        Move('spin', 0, _position=0),
        Move('delay', _delay=delaydelay),
        Move('spin', 1, _position=0),
        Move('delay', _delay=delaydelay),
        Move('spin', 2, _position=0),
        Move('delay', _delay=delaydelay),
        Move('spin', 3, _position=0),
        Move('delay', _delay=delaydelay),
    ])
    scanMoves = MoveList(machine, [
        # run quick setupmoves
        Move('extension', 0, _position='r'),
        Move('extension', 2, _position='r'),
        Move('spin', 0, _position=1),
        Move('spin', 2, _position=1),
        Move('delay', _delay=.3),
        Move('extension', 0, _position='e'),
        Move('extension', 2, _position='e'),

        Move('led', -1, _colour=0x333333),
        # Move('photo', 0),
        Move('delay', _delay=.2),

        Move('led', -1, _colour=0x000000),
        # actual scan moves ( repeat * 3 )
        Move('extension', 1, _position='r'),
        Move('extension', 3, _position='r'),
        Move('delay', _delay=.1),
        Move('spin', 0, _position=0),
        Move('spin', 2, _position=2),
        Move('spin', 1, _position=1),
        Move('spin', 3, _position=1),
        Move('delay', _delay=.2),
        Move('extension', 1, _position='e'),
        Move('extension', 3, _position='e'),

        Move('led', -1, _colour=0x333333),
        Move('photo', 0),
        Move('delay', _delay=.2),

        Move('led', -1, _colour=0x000000),

        Move('extension', 0, _position='r'),
        Move('extension', 2, _position='r'),
        Move('delay', _delay=.1),
        Move('spin', 1, _position=0),
        Move('spin', 3, _position=2),
        Move('spin', 0, _position=1),
        Move('spin', 2, _position=1),
        Move('delay', _delay=.2),
        Move('extension', 0, _position='e'),
        Move('extension', 2, _position='e'),
        # 2
        Move('led', -1, _colour=0x333333),
        Move('photo', 0),
        Move('delay', _delay=.2),

        Move('led', -1, _colour=0x000000),

        Move('extension', 1, _position='r'),
        Move('extension', 3, _position='r'),
        Move('delay', _delay=.1),
        Move('spin', 0, _position=0),
        Move('spin', 2, _position=2),
        Move('spin', 1, _position=1),
        Move('spin', 3, _position=1),
        Move('delay', _delay=.2),
        Move('extension', 1, _position='e'),
        Move('extension', 3, _position='e'),

        Move('led', -1, _colour=0x333333),
        Move('photo', 0),
        Move('delay', _delay=.2),

        Move('led', -1, _colour=0x000000),

        Move('extension', 0, _position='r'),
        Move('extension', 2, _position='r'),
        Move('delay', _delay=.1),
        Move('spin', 1, _position=0),
        Move('spin', 3, _position=2),
        Move('spin', 0, _position=1),
        Move('spin', 2, _position=1),
        Move('delay', _delay=.2),
        Move('extension', 0, _position='e'),
        Move('extension', 2, _position='e'),
        # 3
        Move('led', -1, _colour=0x333333),
        Move('photo', 0),
        Move('delay', _delay=.2),

        Move('led', -1, _colour=0x000000),

        Move('extension', 1, _position='r'),
        Move('extension', 3, _position='r'),
        Move('delay', _delay=.1),
        Move('spin', 0, _position=0),
        Move('spin', 2, _position=2),
        Move('spin', 1, _position=1),
        Move('spin', 3, _position=1),
        Move('delay', _delay=.2),
        Move('extension', 1, _position='e'),
        Move('extension', 3, _position='e'),

        Move('led', -1, _colour=0x333333),
        Move('photo', 0),
        Move('delay', _delay=.2),

        Move('led', -1, _colour=0x000000),

        Move('extension', 0, _position='r'),
        Move('extension', 2, _position='r'),
        Move('delay', _delay=.1),
        Move('spin', 1, _position=0),
        Move('spin', 3, _position=2),
        Move('spin', 0, _position=1),
        Move('spin', 2, _position=1),
        Move('delay', _delay=.2),
        Move('extension', 0, _position='e'),
        Move('extension', 2, _position='e'),
    ])